package org.manon.json.pojo;

import java.util.ArrayList;
import java.util.List;

import org.manon.json.annotation.JSon;

@JSon
public class CollectionParent {

	private String _name;
	
	private List<CollectionChild> _childs;

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public List<CollectionChild> getChilds() {
		return _childs;
	}

	public void setChilds(List<CollectionChild> childs) {
		_childs = childs;
	}

	public void addChild(CollectionChild child) {
		if (_childs == null) {
			_childs = new ArrayList<CollectionChild>();
		}
		_childs.add(child);
	}
	
}